﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AutoupdateClient.Mgr.Handler
{
    using AutoUpdate.Model.Packet;
    public class getNewestVersionHandler : Handler
    {
        public getNewestVersionHandler()
        {
            this.name = "getNewestVersion";
        }

        public override void doAction(Packet packet)
        {
            Action<AutoUpdate.Model.Packet.Packet> callback = ActionMgr.getInstance().getAction(packet.PacketID);

            if (callback != null)
            {
                callback(packet);
            }
        }
    }
}
